<<<<<<< HEAD


import {commonParams,options} from './config'
import jsonp from 'assets/js/jsonp'
import axios from 'axios'


export function getRecommend(){
	// const url = "http://y.qq.com/w/album.html?albummid=003snley4EgI6s"
	// const url = "https://y.qq.com/m/digitalbum/gold/index.html?_video=true&id=2326850&g_f=shoujijiaodian"
=======
import jsonp from 'assets/js/jsonp'
import {commonParams, options} from './config'
import axios from 'axios'

export function getRecommend(){
>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a
	const url = 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg'
	
	var data = Object.assign({},commonParams,{
	    platform: 'h5',
	    uin: 0,
	    needNewCode: 1
	});
<<<<<<< HEAD
 
=======

>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a
	return jsonp(url, data, options)
}

export function getDiscList(){
	const url = '/api/getDiscList'

	var data = Object.assign({},commonParams,{
	    platform: 'yqq',
	    hostUin: 0,
	    sin: 0,
	    ein: 29,
	    sortId: 5,
	    needNewCode: 0,
	    categoryId: 10000000,
	    rnd: Math.random(),
	    format: 'json'
	});

	return axios.get(url,{
		params:data
	}).then((res)=>{
		return Promise.resolve(res.data)
	})
	
}
